/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package vn.edu.vttu.ui;

/**
 *
 * @author nhphuoc
 */
public class PanelInvoce extends javax.swing.JPanel {

    /**
     * Creates new form PanelInvoce
     */
    public PanelInvoce() {
        initComponents();
        loadpanelsaleinvoce();
        loadpanelstoreinvoce();
    }
    private void loadpanelsaleinvoce(){
        PanelSaleInvoice pnSaleInvoice=new PanelSaleInvoice();
        panelsaleinvoice.add(pnSaleInvoice);
        panelsaleinvoice.updateUI();
        panelsaleinvoice.repaint();
    }
    private void loadpanelstoreinvoce(){
        PanelStoreInvoice pnStoreInvoice=new PanelStoreInvoice();
        panelstoreinvoice.add(pnStoreInvoice);
        panelstoreinvoice.updateUI();
        panelstoreinvoice.repaint();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        panelsaleinvoice = new javax.swing.JPanel();
        panelstoreinvoice = new javax.swing.JPanel();

        setLayout(new java.awt.GridLayout(1, 0));

        jTabbedPane1.setForeground(new java.awt.Color(102, 153, 0));
        jTabbedPane1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

        panelsaleinvoice.setLayout(new java.awt.GridLayout(1, 0));
        jTabbedPane1.addTab("Hóa Đơn Bán Hàng", panelsaleinvoice);

        panelstoreinvoice.setLayout(new java.awt.GridLayout());
        jTabbedPane1.addTab("Hóa Đơn Nhập Hàng", panelstoreinvoice);

        add(jTabbedPane1);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JPanel panelsaleinvoice;
    private javax.swing.JPanel panelstoreinvoice;
    // End of variables declaration//GEN-END:variables
}
